import request from '@/utils/request'

// 查询合同工列表
export function listContractSchedule(query) {
  return request({
    url: '/personnel/contractSchedule/list',
    method: 'get',
    params: query
  })
}

// 查询合同工详细
export function getContractSchedule(id) {
  return request({
    url: '/personnel/contractSchedule/' + id,
    method: 'get'
  })
}

// 新增合同工
export function addContractSchedule(data) {
  return request({
    url: '/personnel/contractSchedule',
    method: 'post',
    data: data
  })
}

// 修改合同工
export function updateContractSchedule(data) {
  return request({
    url: '/personnel/contractSchedule',
    method: 'put',
    data: data
  })
}

// 删除合同工
export function delContractSchedule(id) {
  return request({
    url: '/personnel/contractSchedule/' + id,
    method: 'delete'
  })
}
